@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

$editorTabsborderColor: #121315;

body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #fff;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica Neue,Helvetica,PingFang SC,Sans GB,Microsoft YaHei,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
}

input, textarea {
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

.height-full {
  max-height: calc(100% - 50px);
  overflow-y: auto;
}

.height-half-full {
  max-height: calc(50% - 50px);
  overflow-y: auto;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 10px 20px 0px 20px;
  height: calc(100vh - 130px);
  overflow-y: auto;
}

.fixed-header+.app-main {
  .app-container {
    height: calc(100vh - 130px);
  }
}

.hasTagsView {
  .app-main {
    .app-container {
      height: calc(100vh - 160px);
    }
  }
}

.hasTagsView {
  .fixed-header+.app-main {
    .app-container {
      height: calc(100vh - 160px);
    }
  }
}

.fl {
  float: left!important;
}

.fr {
  float: right!important;
}

.red {
  color: #F56C6C!important;
}

.red-b {
  background-color: #F56C6C!important;
}

.green {
  color: #67C23A!important;
}

.green-b {
  background-color: #67C23A!important;
}

.yellow {
  color: #E6A23C!important;
}

.yellow-b {
  background-color: #E6A23C!important;
}

.blue {
  color: #409EFF!important;
}

.blue-b {
  background-color: #409EFF!important;
}

.grey {
  color: #909399!important;
}

.grey-b {
  background-color: #909399!important;
}

.white {
  color: #FFFFFF!important;
}

.white-b {
  background-color: #FFFFFF!important;
}

.black {
  color: #303133!important;
}

.black-b {
  background-color: #303133!important;
}

.help-block {
  font-size: smaller;
  color: #97a8be;
  margin: 0 0 0 0;
}

.el-divider__text {
  background-color: transparent!important;
}

.w-25 {
  width: 25%!important;
}

.w-33 {
  width: 33%!important;
}

.w-50 {
  width: 50%!important;
}

.w-75 {
  width: 75%!important;
}

.w-100 {
  width: 100%!important;
}

.line {
  display: block;
  text-align: center!important;
}

.m-t-5 {
  margin-top: 5px!important;
}

.m-r-5 {
  margin-right: 5px!important;
}

.m-b-5 {
  margin-bottom: 5px!important;
}

.m-l-5 {
  margin-left: 5px!important;
}

.m-t-10 {
  margin-top: 10px!important;
}

.m-r-10 {
  margin-right: 10px!important;
}

.m-b-10 {
  margin-bottom: 10px!important;
}

.m-l-10 {
  margin-left: 10px!important;
}

.m-t-20 {
  margin-top: 20px!important;
}

.m-r-20 {
  margin-right: 20px!important;
}

.m-b-20 {
  margin-bottom: 20px!important;
}

.m-l-20 {
  margin-left: 20px!important;
}

.p-t-5 {
  padding-top: 5px!important;
}

.p-r-5 {
  padding-right: 5px!important;
}

.p-b-5 {
  padding-bottom: 5px!important;
}

.p-l-5 {
  padding-left: 5px!important;
}

.p-t-10 {
  padding-top: 10px!important;
}

.p-r-10 {
  padding-right: 10px!important;
}

.p-b-10 {
  padding-bottom: 10px!important;
}

.p-l-10 {
  padding-left: 10px!important;
}

.p-t-20 {
  padding-top: 20px!important;
}

.p-r-20 {
  padding-right: 20px!important;
}

.p-b-20 {
  padding-bottom: 20px!important;
}

.p-l-20 {
  padding-left: 20px!important;
}

.el-date-editor.el-input, .el-date-editor.el-input__inner {
  width: 200px;
}

.width-50 {
  width: 50px!important;
}

.width-100 {
  width: 100px!important;
}

.width-130 {
  width: 130px!important;
}

.width-200 {
  width: 200px!important;
}

::-webkit-scrollbar-track{
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0);
}
::-webkit-scrollbar-thumb{
  background-color: rgba(0,0,0,0.05);
  border-radius: 10px;
  -webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.1);
}
::-webkit-scrollbar-thumb{
  background-color: rgba(0,0,0,0.2);
  border-radius: 10px;
  -webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.1);
}
::-webkit-scrollbar{
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track, ::-webkit-scrollbar-thumb{
  border-radius: 999px;
  //border: 5px solid rgba(0,0,0,.4);
}
::-webkit-scrollbar-track{
  box-shadow: 1px 1px 5px rgba(0,0,0,.2) inset;
}
::-webkit-scrollbar-thumb{
  min-height: 20px;
  background-clip: content-box;
  box-shadow: 0 0 0 5px rgba(0,0,0,.2) inset;
}
::-webkit-scrollbar-corner{
  background: transparent;
}

// home
.right-scrollbar {
  .el-scrollbar__view {
    padding: 12px 18px 15px 15px;
  }
}

.center-tabs {
  .el-tabs__header{
    margin-bottom: 0!important;
  }
  .el-tabs__item{
    width: 50%;
    text-align: center;
  }
  .el-tabs__nav{
    width: 100%;
  }
}

.reg-item {
  padding: 12px 6px;
  background: #f8f8f8;
  position: relative;
  border-radius: 4px;
  .close-btn{
    position: absolute;
    right: -6px;
    top: -6px;
    display: block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    color: #fff;
    text-align: center;
    z-index: 1;
    cursor: pointer;
    font-size: 12px;
    &:hover{
      background: rgba(210, 23, 23, 0.5)
    }
  }
  & + .reg-item{
    margin-top: 18px;
  }
}
.action-bar {
  & .el-button+.el-button {
    margin-left: 15px;
  }
  & i {
    font-size: 20px;
    vertical-align: middle;
    position: relative;
    top: -1px;
  }
}

.custom-tree-node {
  width: 100%;
  font-size: 14px;
  .node-operation{
    float: right;
  }
  i[class*="el-icon"] + i[class*="el-icon"]{
    margin-left: 6px;
  }
  .el-icon-plus{
    color: #409EFF;
  }
  .el-icon-delete{
    color: #157a0c;
  }
}

.editor-tabs {
  background: $editorTabsborderColor;
  .el-tabs__header{
    margin: 0;
    border-bottom-color: $editorTabsborderColor;
    .el-tabs__nav{
      border-color: $editorTabsborderColor;
    }
  }
  .el-tabs__item{
    height: 32px;
    line-height: 32px;
    color: #888a8e;
    border-left: 1px solid $editorTabsborderColor!important;
    background: #363636;
    margin-right: 5px;
    user-select: none;
  }
  .el-tabs__item.is-active{
    background: #1e1e1e;
    border-bottom-color: #1e1e1e!important;
    color: #fff;
  }
  .el-icon-edit{
    color: #f1fa8c;
  }
  .el-icon-document{
    color: #a95812;
  }
  :focus.is-active.is-focus:not(:active) {
    box-shadow: none;
    border-radius: 0;
  }
}
